Method and apparatus for controlling flexible screen, and electronic device

ABSTRACT

The present disclosure provides a method and an apparatus for controlling a flexible screen and an electronic device. The method includes: obtaining a press parameter with respect to a motor drive switch; and controlling a motor to rotate according to the press parameter, to unfold or fold the flexible screen. The flexible screen can be controlled to unfold and fold to obtain a suitable screen size.

This application is a U.S. national phase application of InternationalApplication No. PCT/CN2017/089393, filed on Jun. 21, 2017, which isbased upon and claims priority Chinese patent applications Serial No.201610539091.5 filed on Jul. 8, 2016, the entire contents of which areincorporated herein by reference.

FIELD

The present disclosure relates to the field of electronic devicetechnologies, and more particularly to a method and an apparatus forcontrolling a flexible screen of an electronic device and an electronicdevice.

BACKGROUND

With the rapid development of information technologies, electronicdevices (such as mobile phones and tablet computers) are upgraded fasterand faster, and a development trend of display screens of the electronicdevices is adopting flexible screens as the displaying screens. Theflexible screen is also referred to as a flexible display screen, whichhas features of light weight, bendability, and portability, and thus hasbecome a future development direction of the display screen.

SUMMARY

Embodiments of a first aspect of the present disclosure provide a methodfor controlling a flexible screen of an electronic device. The methodincludes: obtaining a press parameter with respect to a motor driveswitch; and controlling a motor to rotate according to the pressparameter, to unfold or fold the flexible screen.

Embodiments of a second aspect of the present disclosure provide anapparatus for controlling a flexible screen of an electronic device. Theapparatus includes a processor and a memory configured to storeinstructions executable by the processor. The processor is configured torun a program corresponding to the instructions by reading theinstructions stored in the memory, so as to: obtain a press parameterwith respect to a motor drive switch; and control a motor to rotateaccording to the press parameter, to unfold or fold the flexible screen.

Embodiments of a third aspect of the present disclosure provide anelectronic device. The electronic device includes a winding tube, aflexible screen, a motor drive switch, a motor, and a control circuit.The flexible screen is operable to wind around the winding tube. Themotor drive switch is configured to obtain a press parameter when themotor drive switch is pressed. The control circuit is coupled to themotor drive switch and the motor, and is configured to receive the pressparameter, and to control the motor to rotate according to the pressparameter, to unfold or fold the flexible screen.

In a fourth aspect, a computer readable storage medium is provided. Thecomputer readable storage medium is stored with computer programs,wherein the computer programs are configured to enable a processor toexecute the method for controlling a flexible screen of an electronicdevice described in embodiments of the first aspect of the presentdisclosure.

BRIEF DESCRIPTION OF THE DRAWINGS

FIG. 1 is a schematic diagram of an electronic device according toembodiments of the present disclosure.

FIG. 2 is a schematic diagram of components of the electronic device inFIG. 1a according to embodiments of the present disclosure.

FIG. 3 is a flow chart of a method for controlling a flexible screen ofan electronic device according to a first embodiment of the presentdisclosure.

FIG. 4 is a flow chart of a method for controlling a flexible screen ofan electronic device according to a second embodiment of the presentdisclosure.

FIG. 5 is a flow chart of a method for controlling a flexible screen ofan electronic device according to a third embodiment of the presentdisclosure.

FIG. 6 is a flow chart of a method of for controlling a flexible screenof an electronic device according to a fourth embodiment of the presentdisclosure.

FIG. 7 is a flow chart of a method for controlling a flexible screen ofan electronic device according to a fifth embodiment of the presentdisclosure.

FIG. 8 is a block diagram of an apparatus for controlling a flexiblescreen of an electronic device according to a first embodiment of thepresent disclosure.

FIG. 9 is a block diagram of an apparatus for controlling a flexiblescreen of an electronic device according to a second embodiment of thepresent disclosure.

FIG. 10 is a block diagram of an electronic device according to a firstembodiment of the present disclosure.

FIG. 11 is a block diagram of an electronic device according to a secondembodiment of the present disclosure.

EMBODIMENTS OF THE PRESENT DISCLOSURE

At present, a flexible screen (including a touch screen and a displayscreen) of an electronic device can realize an effect of large sizedisplay. Although the flexible screen can be unfolded, it is unable tocontrol to unfold and fold the flexible screen better. The presentdisclosure provides a method for controlling a flexible screen of anelectronic device and an electronic device, which may control to unfoldor fold the flexible screen.

The electronic device described in embodiments of the present disclosuremay include a smartphone (such as Android Phone, iOS Phone, and WindowsPhone), a tablet computer, a PDA (personal digital assistant), anotebook computer, a MID (mobile internet device), or a wearable device.The above electronic devices are exemplary, and are not exhaustive. Theelectronic device is not limited to these. It should be noted that, eachof the above electronic devices is provided with the flexible screen anda motor drive switch.

It should be noted that, as illustrated in FIG. 1, which shows anelectronic device, the electronic device includes a button, which is themotor drive switch in embodiments of the present disclosure. Thespecific structure of the electronic device is as illustrated in FIG. 2,which includes a winding flexible screen (flexible screen for short), awinding tube (hollow), a battery, a motor, a housing, a control circuitboard, and a button. The winding flexible screen is wound around thewinding tube. The battery may be inserted into the winding tube from oneend. The motor, the control circuit board and the button (motor driveswitch) may be installed from the other end. The control circuit boardis configured to control the motor to rotate. The button is configuredto activate the control circuit board. When a user presses the button,the control circuit board may be used to drive the motor to rotate, todrive the winding tube to rotate, and thus unfold or fold the flexiblescreen. The button may be a physical button, a touch button, or asensor. The sensor can be a fingerprint sensor, a temperature sensor andthe like. When the flexible screen is unfolded fully, the flexiblescreen is in a fully unfolded state. When the flexible screen is foldedfully, the flexible screen is in a fully folded state. When a value ofrotation turns of the motor reaches a limit, the flexible screen is inthe fully unfolded state or the fully folded state, and the motor stopsrotating. Certainly, when the flexible screen is in the fully unfoldedstate, it is possible to drive the motor to rotate, to fold the flexiblescreen. When the flexible screen is in the fully folded state, it ispossible to drive the motor to rotate, to unfold the flexible screen.When the flexible screen is in a partially unfolded state, it ispossible to drive the motor to rotate, to unfold or fold the flexiblescreen.

Based on the above electronic device, as illustrated in FIG. 3, themethod for controlling the flexible screen of the electronic devicedescribed in this embodiment includes following operations.

At block 301, a press parameter with respect to the motor drive switchis obtained.

The motor drive switch may be a physical button or a touch button.Certainly, the motor drive switch may be a sensor, for example, apressure sensor, a fingerprint sensor and the like. When the userpresses the pressure sensor or the fingerprint sensor, a press parametercorresponding to the pressure sensor or the fingerprint sensor may beobtained. The press parameter can be a press intensity, a press durationand the like.

In embodiments of the present disclosure, the press parameter withrespect to the motor drive switch may include, but is not limited to, atleast one of the number of presses of pressing the motor drive switch,the press intensity of pressing the motor drive switch, the pressduration of pressing the motor drive switch, and a press area ofpressing the motor drive switch. The number of presses may be the numberof presses of pressing the motor drive switch within a preset timeperiod. The press intensity may be a maximum press intensity or a meanpress intensity of pressing the motor drive switch during a process fromthe user contacting with the motor drive switch to leaving the motordrive switch, or a press intensity at a certain time point. For example,if the time point is 0.01 s, and the duration of the user pressing themotor drive switch is 2 s, then the press intensity corresponding tothis press process is the press intensity of pressing the motor driveswitch at 0.01 s. The press duration may be an entire time period fromthe user contacting with the motor drive switch to leaving the motordrive switch, or, the press duration may be a time period correspondingto the press intensity in a certain range in a process from the usercontacting with the motor drive switch to leaving the motor driveswitch. An intensity change curve during the press process may beobtained. The time period in which the press intensity is in the certainrange may be counted according to the intensity change curve. The pressarea may be a maximum press area, a mean press area, or a minimum pressarea of pressing the motor drive switch during a process from the usercontacting with the motor drive switch to leaving the motor driveswitch, or a press area at a certain time point. For example, if thetime point is 0.01 s, and the duration of the user pressing the motordrive switch is 2 s, then the press area corresponding to the pressprocess is the press area of pressing the motor drive switch at 0.01 s.

Further, when the motor drive switch is a touch switch, the pressparameter may be number of touch points of touching the motor driveswitch. For example, when the motor drive switch is touched with onefinger, the number of touch points is 1; when the motor drive switch istouched with two fingers, the number of touch points is 2; when themotor drive switch is touched with three fingers, the number of touchpoints is 3, and so on.

At block 302, the motor is controlled to rotate according to the pressparameter, to unfold or fold the flexible screen.

In embodiments of the present disclosure, the electronic device maycontrol the motor to rotate according to different press parameters. Forexample, taking the press intensity as an example, when the greater thepress intensity is, the faster the motor is controlled to rotate, or themore value of rotation turns the motor is controlled to rotate. Duringthe rotation of the motor, the winding tube may be driven to unfold theflexible screen.

In some embodiments, when the flexible screen is in the fully foldedstate, and the press parameter with respect to the drive switch isobtained, the motor can be controlled to rotate according to the pressparameter, to unfold the flexible screen. In other embodiments, when theflexible screen is in the fully unfolded state, and the press parameterwith respect to the drive switch is obtained, the motor can becontrolled to rotate according to the press parameter, to fold theflexible screen.

In some embodiments, an unfolding instruction for the flexible screenmay be received first. When the press parameter with respect to thedrive switch is obtained, the motor can be controlled to rotateaccording to the press parameter, to unfold the flexible screen. Inother embodiments, a folding instruction for the flexible screen may bereceived first. When the press parameter with respect to the driveswitch is obtained, the motor can be controlled to rotate according tothe press parameter, to fold the flexible screen.

It can be seen that, with the above method, the flexible screen may befolded or unfolded, to obtain a suitable screen size, thus satisfyingdifferent requirements of the screen size of the user.

In at least one embodiment, between the block 301 and the block 302,following operations may be further performed.

1) determining whether the press intensity is within a preset range.

2) determining whether the press duration is greater than a secondpreset threshold when the press intensity is within the preset range,the operation at block 302 is performed when the press duration isgreater than the second preset threshold.

At operations 1 and 2, when the press intensity is not within the presetrange, or the press duration is less than or equal to the second presetthreshold, the operation at block 302 is not performed. The preset rangeand the second preset threshold may be set by the user, which is notlimited here. Certainly, the determination may be performed based onother press parameters. For example, it may be determined whether thepress area is within a certain range, and if yes, the operation at block302 is performed, and if no, the operation at block 302 is notperformed. The above operations 1 and 2 may avoid theft and avoidmis-operations to some extent.

It can be seen that, in embodiments of the present disclosure, byobtaining the press parameter with respect to the motor drive switch,the motor is controlled to rotate according to the press parameter, tounfold or fold the flexible screen. Thus, the motor is controlled torotate using the press parameter with respect to the motor drive switch,and further the flexible screen is folded or unfolded. The flexiblescreen may be controlled to unfold or fold to obtain a suitable screensize and satisfy different requirements of the screen size of the user.

FIG. 4 is a flow chart of a method for controlling a flexible screen ofan electronic device according to a second embodiment of the presentdisclosure. As illustrated in FIG. 4, the method described in thisembodiment includes following operations.

At block 401, the press intensity with respect to the motor drive switchis obtained.

At block 402, a value of rotation turns of the motor corresponding tothe press intensity is determined according to a preset mappingrelationship between press intensities and values of rotation turns ofthe motor.

At block 403, the motor is controlled to rotate according to the valueof rotation turns of the motor, to unfold or fold the flexible screen.

The mapping relationship between press intensities and values ofrotation turns of the motor may be set in advance. For example, aminimum press intensity may be set. When the press intensity withrespect to the motor drive switch is greater than this minimum pressintensity, the press intensity with respect to the motor drive switchcan be valid. In this way, the mis-operation on the electronic devicemay be avoided to some extent. In addition, a maximum press intensitymay also be set. When the press intensity with respect to the motordrive switch reaches the maximum press intensity, the value of rotationturns of the motor may be controlled to reach the limit, andaccordingly, the flexible screen is in the fully folded state or thefully unfolded state. When the press intensity with respect to the motordrive switch is between the minimum press intensity and the maximumpress intensity, the value of rotation turns of the motor correspondingto the press intensity is determined according to a formula of:Y=(C−B)/(A−B)*K;

where, Y is the value of rotation turns of the motor corresponding tothe press intensity with respect to the motor drive switch, C is thepress intensity with respect to the motor drive switch, A is the maximumpress intensity, B is the minimum press intensity, and D is the maximumvalue of rotation turns.

Certainly, a plurality of levels may be determined between the minimumpress intensity and the maximum press intensity. For example, theplurality of levels include a1, a2 and a3, the value of rotation turnsof the motor corresponding to a1 is b1, the value of rotation turns ofthe motor corresponding to a2 is b2, and the value of rotation turns ofthe motor corresponding to a3 is b3. Then, when the press intensity isat the level a1, the corresponding value of rotation turns of the motoris b1. Assume that the minimum press intensity is 10 N and the maximumpress intensity is 40 N, then three levels may be set, one being 10˜20N, one being 20˜30 N, and one being 30˜40 N, each level beingcorresponding to one value of rotation turns of the motor. When thepress intensity with respect to the motor drive switch is less than 10N, the motor cannot be driven. When the press intensity with respect tothe motor drive switch is greater than 40 N, the motor is controlled torotate the rotation turns such that the flexible screen enters the fullyunfolded state or the fully folded state. For example, when the pressintensity is 10.8 N, the value of rotation turns of the motorcorresponding to the level of 10˜20 N may be used as the value ofrotation turns of the motor corresponding to the press intensity.

In regard to specific description of other operations in FIG. 4,reference may be made to specific description of respective operationsin the embodiment illustrated in FIG. 3, which will not be elaboratedhere.

FIG. 5 is a flow chart of a method for controlling a flexible screen ofan electronic device according to a third embodiment of the presentdisclosure. As illustrated in FIG. 5, the method described in thisembodiment includes following operations.

At block 501, the press duration with respect to the motor drive switchis obtained.

At block 502, a value of rotation turns of the motor corresponding tothe press intensity is determined according to a preset mappingrelationship between press durations and values of rotation turns of themotor.

At block 503, the motor is controlled to rotate according to the valueof rotation turns of the motor, to unfold or fold the flexible screen.

The mapping relationship between press durations and values of rotationturns of the motor may be set in advance. For example, a minimum pressduration may be set. When the press duration with respect to the motordrive switch is greater than this minimum press duration, the pressduration with respect to the motor drive switch can be valid. In thisway, the mis-operation on the electronic device may be avoided to someextent. In addition, a maximum press duration may also be set. When thepress duration with respect to the motor drive switch reaches themaximum press duration, the value of rotation turns of the motor may becontrolled to reach the limit. Therefore, the flexible screen is in thefully folded state or the fully unfolded state. When the press durationwith respect to the motor drive switch is between the minimum pressduration and the maximum press duration, the value of rotation turns ofthe motor corresponding to the press duration is determined according toa formula of:Y=(C−B)/(A−B)*K;

where, Y is the value of rotation turns of the motor corresponding tothe press duration with respect to the motor drive switch, C is thepress duration with respect to the motor drive switch, A is the maximumpress duration, B is the minimum press duration, and D is the maximumvalue of rotation turns.

Certainly, a plurality of levels may be determined between the minimumpress duration and the maximum press duration. For example, theplurality of levels include a1, a2 and a3, the value of rotation turnsof the motor corresponding to a1 is b1, the value of rotation turns ofthe motor corresponding to a2 is b2, and the value of rotation turns ofthe motor corresponding to a3 is b3. Then, when the press duration is atthe level a1, the corresponding value of rotation turns of the motor isb1. Assume that the minimum press duration is 0.1 s, and the maximumpress duration is 5 s, then three levels may be set, one being 0.1˜1.5s, one being 1.5˜3.5 s, and one being 3.5˜4 s, each level beingcorresponding to one value of rotation turns of the motor. When thepress duration with respect to the motor drive switch is less than 0.1s, the motor cannot be driven. When the press duration with respect tothe motor drive switch is greater than 5 s, the motor is controlled torotate the rotation turns such that the flexible screen enters the fullyunfolded state or the fully folded state. For example, when the pressduration is 1.8 s, the value of rotation turns of the motorcorresponding to the level of 1.5˜3.5 s may be used as the value ofrotation turns of the motor corresponding to the press duration.

Certainly, before obtaining the press duration with respect to the motordrive switch, it may be first determined whether the press intensitywith respect to the motor drive switch is greater than the presetthreshold. When the press intensity with respect to the motor driveswitch is greater than the preset threshold, the press duration withrespect to the motor drive switch is obtained. The main purpose ofdetermining the press intensity before obtaining the press duration isavoiding the mis-operations.

In regard to specific description of other operations in FIG. 5,reference may be made to specific description of respective operationsin the embodiment illustrated in FIG. 3, which will not be elaboratedhere.

FIG. 6, is a flow chart of a method for controlling a flexible screen ofan electronic device according to a fourth embodiment of the presentdisclosure. As illustrated in FIG. 6, the method described in thisembodiment includes following operations.

At block 601, the number of presses with respect to the motor driveswitch is obtained.

At block 602, a value of rotation turns of the motor corresponding tothe number of presses is determined according to a preset mappingrelationship between the numbers of presses and values of rotation turnsof the motor.

In some embodiments, whether the number of presses is less than a firstpreset threshold is determined. When the number of presses is less thanthe first preset threshold, the value of rotation turns of the motorcorresponding to the number of presses is determined according to thepreset mapping relationship between the numbers of presses and values ofrotation turns of the motor, and the motor is controlled to rotateaccording to the value of rotation turns of the motor. When the numberof presses is greater than or equal to the first preset threshold, themotor is controlled to rotate continuously, and when the flexible screenis fully unfolded or fully folded, the motor is controlled to stoprotating. The first preset threshold can be set by the user.

At block 603, the motor is controlled to rotate according to the valueof rotation turns of the motor, to unfold or fold the flexible screen.

In some embodiments, the mapping relationship between the numbers ofpresses and values of rotation turns of the motor may be set in advance.For example, a minimum number of presses may be set. When the number ofpresses with respect to the motor drive switch is greater than thisminimum number of presses, the number of presses with respect to themotor drive switch can be valid. In this way, the mis-operation on theelectronic device may be avoided to some extent. In addition, a maximumnumber of presses may also be set. When the number presses with respectto the motor drive switch reaches the maximum number of presses, thevalue of rotation turns of the motor may be controlled to reach thelimit, and accordingly, the flexible screen is in the fully folded stateor the fully unfolded state. When the number of presses with respect tothe motor drive switch is between the minimum number of presses and themaximum number of presses, the value of rotation turns of the motorcorresponding to the number of presses is determined according to aformula of:Y=(C−B)/(A−B)*K;

where, Y is the value of rotation turns of the motor corresponding tothe number of presses with respect to the motor drive switch, C is thenumber of presses with respect to the motor drive switch, A is themaximum number of presses, B is the minimum number of presses, and D isthe maximum value of rotation turns.

Certainly, a plurality of levels may be determined between the minimumnumber of presses and the maximum number of presses. For example, theplurality of levels include a1, a2 and a3, the value of rotation turnsof the motor corresponding to a1 is b1, the value of rotation turns ofthe motor corresponding to a2 is b2, and the value of rotation turns ofthe motor corresponding to a3 is b3. Then, when the number of presses isat the level a1, the corresponding value of rotation turns of the motoris b1. Assume that the minimum number of presses is 1, and the maximumnumber of presses is 10, then three levels may be set, one being 1˜3,one being 4˜6, and one being 7˜10, each level being corresponding to onevalue of rotation turns of the motor. When the number of presses withrespect to the motor drive switch is less than 1, the motor cannot bedriven. When the number of presses with respect to the motor driveswitch is greater than 10, the motor is controlled to rotate therotation turns such that the flexible screen enters the fully unfoldedstate or the fully folded state. For example, when the number of pressesis 5, the value of rotation turns of the motor corresponding to thelevel of 4˜6 may be used as the value of rotation turns of the motorcorresponding to the number of presses.

In some embodiments, the above minimum number of presses may be 0. Forexample, when the number of presses with respect to the motor driveswitch is 1, the value of rotation turns of the motor corresponding tothis one time of press may be determined, and the motor can becontrolled to rotate with the rotation turns of the motor.

Certainly, before obtaining the number of presses with respect to themotor drive switch, the electronic device may be first wakened. When theelectronic device is wakened, the number of presses with respect to themotor drive switch is obtained. The main purpose of wakening theelectronic device before obtaining the number of presses is avoiding themis-operations.

In some embodiments, the above number of presses may be the number ofpresses within a preset time period. When the user keeps pressing themotor drive switch, one press may be counted every preset time interval.Further, during collecting the number of presses, when the time intervalbetween two adjacent press operations is greater than a certainthreshold, the number of presses is counted for a next turn. Forexample, when 5 presses have been counted, and the time interval betweenthe fifth press and the sixth press is greater than the certainthreshold, the finally counted number of presses is 5.

In regard to specific description of other operations in FIG. 6,reference may be made to specific description of respective operationsin the embodiment illustrated in FIG. 3, which will not be elaboratedhere.

FIG. 7 is a flow chart of a method for controlling a flexible screen ofan electronic device according to a fifth embodiment of the presentdisclosure. As illustrated in FIG. 7, the method described in thisembodiment includes following operations.

At block 701, the press parameter with respect to the motor drive switchis obtained. The press parameter includes the number of presses ofpressing the motor drive switch, the press intensity of pressing themotor drive switch, and the press duration of pressing the motor driveswitch.

At block 702, whether the press intensity is within the preset range isdetermined.

At block 703, when the press intensity is within the preset range,whether the press duration is greater than the second preset thresholdis determined.

At block 704, when the press duration is greater than the second presetthreshold, the value of rotation turns of the motor corresponding to thenumber of presses is determined according to the preset mappingrelationship between the numbers of presses and the values of rotationturns of the motor.

At block 705, the motor is controlled to rotate according to the valueof rotation turns of the motor, to unfold or fold the flexible screen.

Both the preset range and the second preset threshold may be set by theuser, which is not limited here. The operation at block 703 is performedonly when the press intensity is within the preset range. Moreover, theoperation at block 704 is performed only when the press intensity iswithin the preset range and the press duration is greater than thesecond preset threshold. The operations at block 702 and block 703 mayavoid mi-operations to some extent, and moreover, may have a certainanti-theft function. When any determination result of the operations atblock 702 and block 703 is negative, the motor cannot be driven torotate, i.e., the flexible screen cannot be folded or unfolded.

In regard to specific description of other operations in FIG. 7,reference may be made to specific description of respective operationsin the embodiment illustrated in FIG. 3, which will not be elaboratedhere.

Embodiments of the present disclosure further provide an apparatus forcontrolling a flexible screen of an electronic device.

As illustrated in FIG. 8, the apparatus includes an obtaining unit 801and a controlling unit 802.

The obtaining unit 801 is configured to obtain a press parameter withrespect to a motor drive switch.

The controlling unit 802 is configured to control a motor to rotateaccording to the press parameter obtained by the obtaining unit 801, tounfold or fold the flexible screen.

In at least one embodiment, the press parameter includes at least one ofa number of pressing the motor drive switch, a press intensity ofpressing the motor drive switch, and a press duration of pressing themotor drive switch.

In at least one embodiment, the controlling unit 802 is configured to:determine a value of rotation turns of the motor corresponding to thepress intensity according to a preset mapping relationship between pressintensities and values of rotation turns of the motor; and control themotor to rotate according to the value of rotation turns.

In at least one embodiment, the controlling unit 802 is configured to:determine a value of rotation turns of the motor corresponding to thepress duration according to a preset mapping relationship between pressdurations and values of rotation turns of the motor; and control themotor to rotate according to the value of rotation turns.

In at least one embodiment, the controlling unit 802 is configured to:determine a value of rotation turns of the motor corresponding to thenumber of presses according to a preset mapping relationship betweennumbers of presses and values of rotation turns of the motor when thenumber of presses is less than a first preset threshold, and control themotor to rotate according to the value of rotation turns; control themotor to rotate continuously and control the motor to stop rotatinguntil the flexible screen is fully folded or fully unfolded when thenumber of presses is greater than or equal to the first presetthreshold.

As illustrated in FIG. 9, the apparatus illustrated in FIG. 8 mayfurther include a determining unit 803.

The determining unit 803 is configured to determine whether the pressintensity is within a preset range after the obtaining unit 801 obtainsthe press parameter with respect to the motor drive switch, anddetermine whether the press duration is greater than a second presetthreshold after determining that the press intensity is within thepresent range, and determine a value of rotation turns of the motorcorresponding to the number of presses according to a preset mappingrelationship between numbers of presses and values of rotation turns ofthe motor after determining that the press duration is greater than thesecond preset threshold. The controlling unit 802 controls the motor torotate according to the value of rotation turns of the motor.

It can be seen that, the electronic device described in embodiments ofthe present disclosure may obtain the press parameter with respect tothe motor drive switch, and control the motor to rotate according to thepress parameter, to unfold or fold the flexible screen. Thus, theflexible screen is folded and unfolded, and further the folding andunfolding of the flexible screen can be controlled, such that a suitablescreen size may be obtained, satisfying different requirements of thescreen size of the user.

It can be understood that, functions of respective program modules ofthe electronic device in this embodiment may be implemented according toabove method embodiments, with respect to the specific implementation ofwhich, reference can be made to related description of the above methodembodiments, which will not be elaborated here.

FIG. 10 is a block diagram of an electronic device according to a firstembodiment of the present disclosure. The electronic device described inthis embodiment includes: at least one input device 1000; at least oneoutput device 2000; at least one processor 3000, for example, CPU; and amemory 4000. The above input device 1000, output device 2000, processor3000 and memory 4000 are coupled via a bus 5000.

The input device 1000 may be a touch panel, a physical button, or amouse, a motor drive switch, or the like.

The output device 2000 may be a flexible screen.

The memory 4000 may be a high speed RAM, or may be a non-volatilememory, for example, a disk memory. The memory 4000 is configured tostore a set of program codes. The input device 1000, the output device2000 and the processor 3000 are configured to call the program codesstored in the memory 4000, to perform following operations.

The processor 3000 is configured to: obtain a press parameter withrespect to a motor drive switch; and control a motor to rotate accordingto the press parameter, to unfold or fold the flexible screen.

In at least one embodiment, the press parameter includes at least one ofa number of pressing the motor drive switch, a press intensity ofpressing the motor drive switch, and a press duration of pressing themotor drive switch.

In at least one embodiment, the processor 3000 is configured to controlthe motor to rotate according to the press parameter, by: determining avalue of rotation turns of the motor corresponding to the pressintensity according to a preset mapping relationship between pressintensities and values of rotation turns of the motor; and controllingthe motor to rotate according to the value of rotation turns.

In at least one embodiment, the processor 3000 is configured to controlthe motor to rotate according to the press parameter, by: determining avalue of rotation turns of the motor corresponding to the press durationaccording to a preset mapping relationship between press durations andvalues of rotation turns of the motor; and controlling the motor torotate according to the value of rotation turns.

In at least one embodiment, the processor 3000 is configured to controlthe motor to rotate according to the press parameter, by: determining avalue of rotation turns of the motor corresponding to the number ofpresses according to a preset mapping relationship between numbers ofpresses and values of rotation turns of the motor when the number ofpresses is less than a first preset threshold, and controlling the motorto rotate according to the value of rotation turns; controlling themotor to rotate continuously and controlling the motor to Gtop rotatinguntil the flexible screen is fully folded or fully unfolded when thenumber of presses is greater than or equal to the first presetthreshold.

In at least one embodiment, after obtaining the press parameter withrespect to the motor drive switch, and before controlling the motor torotate according to the press parameter, the processor 3000 is furtherconfigured to: determine whether the press intensity is within a presetrange; determine whether the press duration is greater than a secondpreset threshold when determining that the press intensity is within thepreset range, and determine a value of rotation turns of the motorcorresponding to the number of presses according to a preset mappingrelationship between numbers of presses and values of rotation turns ofthe motor when determining that the press duration is greater than thesecond preset threshold.

Embodiments of the present disclosure further provide a computer storagemedium. The computer storage medium is stored with computer programs forelectronic data exchange. The computer programs are configured to causea computer to execute all or a part of operations of any control methodof an electronic device disclosed in above method embodiments.

FIG. 11 is a block diagram of an electronic device according to a secondembodiment of the present disclosure. The electronic device includes awinding tube 110, a flexible screen 120, a motor drive switch 130, amotor 140 and a control circuit 150.

The flexible screen 120 is operable to wind around the winding tube 110.The motor drive switch 130 is configured to obtain a press parameterwhen the motor drive switch 130 is pressed. The motor 140 is coupled tothe winding tube 110. The control circuit 150 is coupled to the motordrive switch 130 and the motor 140 respectively, and is configured toreceive the press parameter, and to control the motor 140 to rotateaccording to the press parameter, to unfold or fold the flexible screen120.

The control circuit 150 may work similar to those described in methodembodiments, which will not be elaborated here.

Embodiments of the present disclosure further provide a computer programproduct. The computer program product includes a non-transitory computerreadable storage medium stored with computer programs. The computerprograms are operable to cause a computer to execute all or a part ofoperations of any control method of an electronic device disclosed inabove method embodiments.

Although the present disclosure is described here in combination withrespective embodiments, those skilled in the art may understand andimplement other variants of the disclosed embodiments by viewing thedrawings, the disclosure, and the appending claims during implementingthe claimed inventions. In the claims, the term “comprising” does notexclude other components or steps, “a” or “an” does not exclude a pluralform. A single processor or other units may implement several functionslisted in the claims. Some measures are disclosed in mutually differentdependent claims, but this does not imply that these measures cannot becombined to produce a better effect.

Those skilled in the art should understand that, embodiments of thepresent disclosure may be provided as a method, an apparatus (device) ora computer program product. Thus, the present disclosure may beimplemented in a form of hardware, software, or a combination ofhardware and software. Moreover, the preset disclosure may beimplemented in a form of computer program product implemented on one ormore computer accessible storage medium (including, but not limited to,disk memory, CD-ROM, and optical memory) and containing computeraccessible program codes. The computer program is stored/distributed ina suitable medium, which is provided together with other hardware oracts as a part of the hardware. The computer program may also bedistributed in other forms, for example, via the Internet or other wiredor wireless telecommunication systems.

The present disclosure is described with reference to flow charts and/orblock diagrams of a method, apparatus (device) and computer programproduct of embodiments of the present disclosure. It should beunderstood that, each flow and/or block in the flow charts and/or blockdiagrams, and a combination of flows and/or blocks in the flow chartsand/or block diagrams may be implemented by computer programinstructions. These computer program instructions may be provided to ageneral-purpose computer, a dedicated computer, an embedded processor,or a processor of other programmable data processing device to produce amachine, such that the instructions executed by the computer or theprocessor of other programmable data processing device generate anapparatus for implementing functions specified in one or more flows ofthe flow chart and/or one or more blocks in the block diagram.

These computer program instructions may also be stored in a computerreadable memory that can guide the computer or the other programmabledata processing devices to work in a special way, such that theinstructions stored in the computer readable memory generate amanufactured article including a command device. The command deviceimplements functions specified in one or more flows of the flow chartand/or one or more blocks in the block diagram.

These computer program instructions may also be loaded to the computeror the other programmable data processing devices, such that a series ofoperations is executed on the computer or the other programmable dataprocessing devices to generate processing implemented by the computer,and thus the instructions executed on the computer or the otherprogrammable data processing devices provide operations for implementingfunctions specified in one or more flows of the flow chart and/or one ormore blocks in the block diagram.

Although the present disclosure is described in combination withspecific feature and embodiments thereof, it is obvious that variousmodification and combination can be made without departing form thespirit and the scope of the present disclosure. Accordingly, thespecification and the drawings are merely exemplary illustration of thepresent disclosure defined by the appending claims, and are regarded tocover any and all modification, change, combination or equivalent in thescope of the present disclosure. Obviously, those skilled in the art maymake various change and variants to the present disclosure, withoutdeparting from the spirit and the scope of the present disclosure. Inthis case, when these change and variants of the present disclosurebelong to the scope of the claims and the equivalent technologies, thepresent disclosure intends to include these change and variants.

What is claimed is:
 1. A method for controlling a flexible screen of anelectronic device, comprising: obtaining a press parameter with respectto a motor drive switch; and controlling a motor to rotate according tothe press parameter, to unfold or fold the flexible screen; wherein thepress parameter comprises at least one of a number of presses ofpressing the motor drive switch, a press intensity of pressing the motordrive switch, and a press duration of pressing the motor drive switch;wherein, after obtaining the press parameter with respect to the motordrive switch and before controlling the motor to rotate according to thepress parameter, the method further comprises: determining whether thepress intensity is within a preset range; determining whether the pressduration is greater than a second preset threshold when determining thatthe press intensity is within the preset range; and determining a valueof rotation turns of the motor corresponding to the number of pressesaccording to a preset mapping relationship between numbers of pressesand values of rotation turns of the motor when determining that thepress duration is greater than the second preset threshold.
 2. Themethod according to claim 1, wherein when the press parameter is thepress intensity or the press duration, controlling the motor to rotateaccording to the press parameter comprises: determining a value ofrotation turns of the motor corresponding to the press intensity or thepress duration according to a preset mapping relationship between pressintensities or press durations and values of rotation turns of themotor; and controlling the motor to rotate according to the value ofrotation turns.
 3. The method according to claim 1, wherein controllingthe motor to rotate according to the press parameter comprises:determining a value of rotation turns of the motor corresponding to thenumber of presses according to a preset mapping relationship betweennumbers of presses and values of rotation turns of the motor when thenumber of presses is less than a first preset threshold, and controllingthe motor to rotate according to the value of rotation turns;controlling the motor to rotate continuously, until the flexible screenis fully folded or fully unfolded when the number of presses is greaterthan or equal to the first preset threshold.
 4. An apparatus forcontrolling a flexible screen of an electronic device, comprising: aprocessor; and a memory, configured to store instructions executable bythe processor, wherein the processor is configured to run a programcorresponding to the instructions by reading the instructions stored inthe memory, so as to: obtain a press parameter with respect to a motordrive switch; and control a motor to rotate according to the pressparameter, to unfold or fold the flexible screen; wherein the pressparameter comprises at least one of a number of presses of pressing themotor drive switch, a press intensity of pressing the motor driveswitch, and a press duration of pressing the motor drive switch; whereinthe processor is further configured to: determine whether the pressintensity is within a preset range after obtaining the press parameterwith respect to the motor drive switch; determine whether the pressduration is greater than a second preset threshold after determiningthat the press intensity is within the present range; and determine avalue of rotation turns of the motor corresponding to the number ofpresses according to a preset mapping relationship between numbers ofpresses and values of rotation turns of the motor when the pressduration is greater than the second preset threshold, to control themotor to rotate according to the value of rotation turns of the motor.5. The apparatus according to claim 4, wherein, when the press parameteris the press intensity or the press duration, the processor isconfigured to: determine a value of rotation turns of the motorcorresponding to the press intensity or the press duration according toa preset mapping relationship between press intensities or pressdurations and values of rotation turns of the motor; and control themotor to rotate according to the value of rotation turns.
 6. Theapparatus according to claim 4, wherein the processor is configured to:determine a value of rotation turns of the motor corresponding to thenumber of presses according to a preset mapping relationship betweennumbers of presses and values of rotation turns of the motor when thenumber of presses is less than a first preset threshold, and control themotor to rotate according to the value of rotation turns; control themotor to rotate continuously until the flexible screen is fully foldedor fully unfolded when the number of presses is greater than or equal tothe first preset threshold.
 7. An electronic device, comprising: awinding tube; a flexible screen, operable to wind around the windingtube; a motor drive switch, configured to obtain a press parameter whenthe motor drive switch is pressed; a motor, coupled to the winding tube;and a control circuit, coupled to the motor drive switch and the motorrespectively, and configured to receive the press parameter, and tocontrol the motor to rotate according to the press parameter, to unfoldor fold the flexible screen; wherein the press parameter comprises atleast one of a number of presses of pressing the motor drive switch, apress intensity of pressing the motor drive switch, and a press durationof pressing the motor drive switch; wherein, after receiving the pressparameter and before controlling the motor to rotate according to thepress parameter, the control circuit is further configured to: determinewhether the press intensity is within a preset range; determine whetherthe press duration is greater than a second preset threshold whendetermining that the press intensity is within the preset range; anddetermine a value of rotation turns of the motor corresponding to thenumber of presses according to a preset mapping relationship betweennumbers of presses and values of rotation turns of the motor whendetermining that the press duration is greater than the second presetthreshold, to control the motor to rotate according to the value ofrotation turns of the motor.
 8. The electronic device according to claim7, wherein when the press parameter is the press intensity or the pressduration, the control circuit is further configured to: determine avalue of rotation turns of the motor corresponding to the pressintensity or the press duration according to a preset mappingrelationship between press intensities or press durations and values ofrotation turns of the motor; and control the motor to rotate accordingto the value of rotation turns.
 9. The electronic device according toclaim 7, wherein the control circuit is further configured to: determinea value of rotation turns of the motor corresponding to the number ofpresses according to a preset mapping relationship between numbers ofpresses and values of rotation turns of the motor when the number ofpresses is less than a first preset threshold, and controlling the motorto rotate according to the value of rotation turns; control the motor torotate continuously until the flexible screen is fully folded or fullyunfolded when the number of presses is greater than or equal to thefirst preset threshold.
 10. The method according to claim 1, furthercomprising: receiving an unfolding instruction or a folding instructionbefore controlling the motor to rotate according to the press parameter.11. The apparatus according to claim 4, wherein the processor is furtherconfigured to: receive an unfolding instruction or a folding instructionbefore controlling the motor to rotate according to the press parameter.12. The electronic device according to claim 7, wherein the motor driveswitch is a sensor.
 13. The electronic device according to claim 7,wherein the control circuit is further configured to: receive anunfolding instruction or a folding instruction before controlling themotor to rotate according to the press parameter.